package com.sntra.beibi.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sntra.beibi.domain.Dot;

public interface DotMapper {
	
	  /**
     * 查询点
     *
     * @param sectionID 查询条件
     * @return 返回的结果
     */
    List<Dot> selectDots(@Param("penMac") String penMac, @Param("bookID")  int bookID,@Param("pageID")  int pageID,@Param("status")  int status);
    /**
     * 查询点
     *
     * @param sectionID 查询条件
     * @return 返回的结果
     */
    List<Dot> selectDotsByUser(@Param("ownerID") int ownerID, @Param("bookID")  int bookID,@Param("pageID")  int pageID,@Param("status")  int status);
    
    
    int count(@Param("sectionID") int sectionID, @Param("ownerID") int ownerID,@Param("bookID")  int bookID,@Param("pageID")  int pageID);
    
    int updateStatusBatch(List<Integer> dotIds);
    
    int insertBatch(List<Dot>  dots);
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Long dotId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    int insert(Dot record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    int insertSelective(Dot record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    Dot selectByPrimaryKey(Long dotId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(Dot record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_dots
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(Dot record);
}